/*
 * TMap Designer - A Thematic Map design software
 * Copyright (C) 2006 World Health Organization
 * http://www.who.int
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package who.tmap.toolkit;

import java.awt.Container;
import java.awt.Graphics2D;
import java.awt.datatransfer.ClipboardOwner;
import java.awt.image.BufferedImage;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.io.File;
import java.io.IOException;

import com.sun.image.codec.jpeg.ImageFormatException;

import who.tmap.bo.MultiLayerThematicMap;

public interface MultiLayerThematicMapToolKit extends ClipboardOwner, Printable {

	/**
	 * Multi-layer thematic maps
	 */
	void repaintThematicMap( Graphics2D g, PageFormat pageFormat, Integer width, Integer height ) throws Exception;
	
	void repaintThematicMap( Graphics2D g, PageFormat pageFormat ) throws Exception;
	
	BufferedImage retrieveThematicMapImage( Integer width, Integer height ) throws Exception;
	
	boolean saveThematicMapAsBitmap( File file, String extension, int width, int height ) throws ImageFormatException, IOException;
	
	void clipboardCopy( Integer width, Integer height ) throws Exception;
	
	void setContainer( Container container );
	
	void setMultiLayerThematicMap( MultiLayerThematicMap mltm );
	
}
